home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1991 November
/
1991-11.d64
/
connect game
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
18KB
|
643 lines
0 clr
100 rem copyright 1991 - compute publications intl ltd - all rights reserved
135 goto2670
140 if l$="ab" and at>0 goto465
145 if l$="bc" and bt>0 goto465
150 if l$="cd" and ct>0 goto465
155 if l$="de" and dt>0 goto465
160 if l$="af" and al>0 goto465
165 if l$="fk" and el>0 goto465
170 if l$="kp" and il>0 goto465
175 if l$="pu" and ml>0 goto465
180 if l$="ej" and dr>0 goto465
185 if l$="jo" and hr>0 goto465
190 if l$="ot" and lr>0 goto465
195 if l$="ty" and pr>0 goto465
200 if l$="uv" and mb>0 goto465
205 if l$="vw" and nb>0 goto465
210 if l$="wx" and ob>0 goto465
215 if l$="xy" and pb>0 goto465
220 if l$="fg" and ab>0 goto465
225 if l$="fg" and et>0 goto465
230 if l$="gh" and bb>0 goto465
235 if l$="gh" and ft>0 goto465
240 if l$="hi" and cb>0 goto465
245 if l$="hi" and gt>0 goto465
250 if l$="ij" and db>0 goto465
255 if l$="ij" and ht>0 goto465
260 if l$="kl" and eb>0 goto465
265 if l$="kl" and it>0 goto465
270 if l$="lm" and fb>0 goto465
275 if l$="lm" and jt>0 goto465
280 if l$="mn" and gb>0 goto465
285 if l$="mn" and kt>0 goto465
290 if l$="no" and hb>0 goto465
295 if l$="no" and lt>0 goto465
300 if l$="pq" and ib>0 goto465
305 if l$="pq" and mt>0 goto465
310 if l$="qr" and jb>0 goto465
315 if l$="qr" and nt>0 goto465
320 if l$="rs" and kb>0 goto465
325 if l$="rs" and ot>0 goto465
330 if l$="st" and lb>0 goto465
335 if l$="st" and pt>0 goto465
340 if l$="bg" and ar>0 goto465
345 if l$="bg" and bl>0 goto465
350 if l$="gl" and er>0 goto465
355 if l$="gl" and fl>0 goto465
360 if l$="lq" and ir>0 goto465
365 if l$="lq" and jl>0 goto465
370 if l$="qv" and mr>0 goto465
375 if l$="qv" and nl>0 goto465
380 if l$="ch" and br>0 goto465
385 if l$="ch" and cl>0 goto465
390 if l$="hm" and fr>0 goto465
395 if l$="hm" and gl>0 goto465
400 if l$="mr" and jr>0 goto465
405 if l$="mr" and kl>0 goto465
410 if l$="rw" and nr>0 goto465
415 if l$="rw" and ol>0 goto465
420 if l$="di" and cr>0 goto465
425 if l$="di" and dl>0 goto465
430 if l$="in" and gr>0 goto465
435 if l$="in" and hl>0 goto465
440 if l$="ns" and kr>0 goto465
445 if l$="ns" and ll>0 goto465
450 if l$="sx" and ox>0 goto465
455 if l$="sx" and pl>0 goto465
460 return
465 poke 53270,peek(53270)or16:print""
470 gosub3300
475 print"sorry, that line has already been taken"
480 poke 53270,peek(53270)or16:print""
485 print"press the space bar when you are ready."
490 poke 53270,peek(53270)and 239
495 get a$: if a$<> chr$(32) goto495
500 t=2: gosub3300: goto3270
505 if l$= "ab" goto1870
510 if l$= "bc" goto1870
515 if l$= "cd" goto1870
520 if l$= "de" goto1870
525 if l$= "fg" goto1870
530 if l$= "gh" goto1870
535 if l$= "hi" goto1870
540 if l$= "ij" goto1870
545 if l$= "kl" goto1870
550 if l$= "lm" goto1870
555 if l$= "mn" goto1870
560 if l$= "no" goto1870
565 if l$= "pq" goto1870
570 if l$= "qr" goto1870
575 if l$= "rs" goto1870
580 if l$= "st" goto1870
585 if l$= "uv" goto1870
590 if l$= "vw" goto1870
595 if l$= "wx" goto1870
600 if l$= "xy" goto1870
605 if l$= "af" goto1770
610 if l$= "fk" goto1770
615 if l$= "kp" goto1770
620 if l$= "pu" goto1770
625 if l$= "bg" goto1770
630 if l$= "gl" goto1770
635 if l$= "lq" goto1770
640 if l$= "qv" goto1770
645 if l$= "ch" goto1770
650 if l$= "hm" goto1770
655 if l$= "mr" goto1770
660 if l$= "rw" goto1770
665 if l$= "di" goto1770
670 if l$= "in" goto1770
675 if l$= "ns" goto1770
680 if l$= "sx" goto1770
685 if l$= "ej" goto1770
690 if l$= "jo" goto1770
695 if l$= "ot" goto1770
700 if l$= "ty" goto1770
705 gosub3300
710 print"be careful, that is not a correct line.":print
715 poke 52370,peek(53270)or16:print""
720 print"press the space bar when you are ready."
725 poke 52370,peek(53270)and239
730 get a$: if a$<> chr$(32) goto730
735 gosub3300: t=2
740 goto 3265
745 if(at)+(ab)+(al)+(ar)=3 then s=1: goto2410
750 if(bt)+(bb)+(bl)+(br)=3 then s=1: goto2530
755 if(ht)+(hb)+(hl)+(hr)=3 then s=1: goto2590
760 if(kt)+(kb)+(kl)+(kr)=3 then s=1: goto2570
765 if(mt)+(mb)+(ml)+(mr)=3 then s=1: goto2370
770 if(ct)+(cb)+(cl)+(cr)=3 then s=1: goto2470
775 if(ot)+(ob)+(ol)+(ox)=3 then s=1: goto2610
780 if(jt)+(jb)+(jl)+(jr)=3 then s=1: goto2550
785 if(lt)+(lb)+(ll)+(lr)=3 then s=1: goto2510
790 if(pt)+(pb)+(pl)+(pr)=3 then s=1: goto2650
795 if(gt)+(gb)+(gl)+(gr)=3 then s=1: goto2390
800 if(et)+(eb)+(el)+(er)=3 then s=1: goto2430
805 if(nt)+(nb)+(nl)+(nr)=3 then s=1: goto 2350
810 if(dt)+(db)+(dl)+(dr)=3 then s=1: goto2490
815 if(it)+(ib)+(il)+(ir)=3 then s=1: goto2630
820 if(ft)+(fb)+(fl)+(fr)=3 then s=1: goto2450
825 gosub3300
830 return
835 if(ft+fb+fl+fr)<>1 goto880
840 if ft=1 or(bt+bb+bl+br)>1 goto850
845 l$="gh": goto1895
850 if fr=1 or(gt+gb+gl+gr)>1 goto860
855 l$="hm": goto1815
860 if fb=1 or (jt+jb+jl+jr)>1 goto870
865 l$="im": goto1915
870 if fl=1 or (et+eb+el+er)>1 goto880
875 l$="gl": goto1795
880 if(gt+gb+gl+gr)<>1 goto925
885 if gt=1 or (ct+cb+cl+cr)>1 goto895
890 l$="hi": goto1900
895 if gb=1 or (kt+kb+kl+kr)>1 goto905
900 l$="mn": goto1920
905 if gl=1 or (ft+fb+fl+fr)>1 goto915
910 l$="hm": goto1815
915 if gr=1 or (ht+hb+hl+hr)>1 goto925
920 l$="in": goto1835
925 if(jt+jb+jl+jr)<>1 goto970
930 if jt=1 or (ft+fb+fl+fr)>1 goto940
935 l$="lm": goto1915
940 if jr=1 or (kt+kb+kl+kr)>1 goto950
945 l$="mr": goto1820
950 if jb=1 or (nt+nb+nl+nr)>1 goto960
955 l$="qr": goto1935
960 if jl=1 or (it+ib+il+ir)>1 goto970
965 l$="lq": goto1800
970 if(kt+kb+kl+kr)<>1 goto1015
975 if kt=1 or (gt+gb+gl+gr)>1 goto985
980 l$="mn": goto1920
985 if kr=1 or (lt+lb+ll+lr)>1 goto995
990 l$="ns": goto1840
995 if kb=1 or (ot+ob+ol+ox)>1 goto1005
1000 l$="rs": goto1940
1005 if kl=1 or (jt+jb+jl+jr)>1 goto1015
1010 l$="mr": goto1820
1015 if(dt+db+dl+dr)<>1 goto1060
1020 if dt=1 goto1030
1025 l$="de": goto1885
1030 if dr=1 goto1040
1035 l$="ej": goto1850
1040 if db=1 or (ht+hb+hl+hr)>1 goto1050
1045 l$="ij": goto1905
1050 if dl=1 or (ct+cb+cl+cr)>1 goto1060
1055 l$="di": goto1830
1060 if(pt+pb+pl+pr)<>1 goto1105
1065 if pt=1 or(lt+lb+ll+lr)>1 goto1075
1070 l$="st": goto1945
1075 if pr=1 goto1085
1080 l$="ty": goto1865
1085 if pb=1 goto1095
1090 l$="xy": goto1965
1095 if pl=1 or (ot+ob+ol+or)>1 goto1095
1100 l$="sx": goto1845
1105 if(at+ab+al+ar)<>1 goto1150
1110 if at=1 goto1120
1115 l$="ab": goto1870
1120 if ar=1 or (bt+bb+bl+br)>1 goto1130
1125 l$="bg": goto1790
1130 if ab=1 or (et+eb+el+er)>1 goto1140
1135 l$="fg": goto1890
1140 if al=1 then goto1150
1145 l$="af": goto 1770
1150 if(mt+mb+ml+mr)<>1 goto1195
1155 if mt=1 or (it+ib+il+ir)>1 goto1165
1160 l$="pq": goto1930
1165 if mr=1 or (nt+nb+nl+nr)>1 goto1175
1170 l$="qv": goto1805
1175 if mb=1 then goto1185
1180 l$="uv": goto1950
1185 if ml=1 goto1195
1190 l$="pu": goto1785
1195 if(et+eb+el+er)<>1 goto1240
1200 if et=1 or (at+ab+al+ar)>1 goto1210
1205 l$="fg": goto1890
1210 if er=1 or (ft+fb+fl+fr)>1 goto1220
1215 l$="gl": goto1795
1220 if eb=1 or (it+ib+il+ir)>1 goto1230
1225 l$="kl": goto1910
1230 if el=1 goto1240
1235 l$="fk": goto1775
1240 if(ct+cb+cl+cr)<>1 goto1285
1245 if ct=1 goto1255
1250 l$="cd" : goto1880
1255 if cr=1 or (dt+db+dl+dr)>1 goto1265
1260 l$="di": goto1830
1265 if cb=1 or (gt+gb+gl+gr)>1 goto1275
1270 l$="hi": goto1900
1275 if cl=1 or (bt+bb+bl+br)>1 goto1285
1280 l$="ch": goto1810
1285 if(it+ib+il+ir)<>1 goto1330
1290 if it=1 or (et+eb+el+er)>1 goto1300
1295 l$="kl": goto1910
1300 if ir=1 or (jt+jb+jl+jr)>1 goto1310
1305 l$="lq": goto1800
1310 if ib=1 or (mt+mb+ml+mr)>1 goto1320
1315 l$="pq": goto1930
1320 if il=1 goto1330
1325 l$="kp": goto1780
1330 if(ht+hb+hl+hr)<>1 goto1375
1335 if ht=1 or (dt+db+dl+dr)>1 goto1345
1340 l$="ij": goto1905
1345 if hr=1 goto1355
1350 l$="jo": goto1855
1355 if hb=1 or (lt+lb+ll+lr)>1 goto1365
1360 l$="no": goto1925
1365 if hl=1 or (gt+gb+gl+gr)>1 goto1375
1370 l$="in": goto1835
1375 if(lt+lb+ll+lr)<>1 goto1420
1380 if lt=1 or (ht+hb+hl+hr)>1 goto1390
1385 l$="no": goto1925
1390 if lr=1 goto1400
1395 l$="ot": goto1860
1400 if lb=1 or (pt+pb+pl+pr)>1 goto1410
1405 l$="st": goto1945
1410 if ll=1 or (kt+kb+kl+kr)>1 goto1420
1415 l$="ns": goto1840
1420 if(nt+nb+nl+nr)<>1 goto1465
1425 if nt=1 or (jt+jb+jl+jr)>1 goto1435
1430 l$="qr": goto1935
1435 if nr=1 or (ot+ob+ol+ox)>1 goto1445
1440 l$="rw": goto1825
1445 if nb=1 goto1455
1450 l$="vw": got